﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApp
{
    public partial class Form10 : Form
    {
        public Form10()
        {
            InitializeComponent();
        }

        /// <summary>
        /// 窗体加载时间
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Form10_Load(object sender, EventArgs e)
        {

        }

        /// <summary>
        /// 关闭对话框
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Form10_FormClosing(object sender, FormClosedEventArgs e) {
            DialogResult dialogResult = MessageBox.Show("确定要关闭吗?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
            if (dialogResult == DialogResult.OK)
            {
                Form10 f = new Form10();
                f.Close();
            }
        }
    }
}
